package com.ims.service.impl;

import com.b2c.common.third.thymeleaf.PagingResponse;
import com.ims.entity.WorkDailyEntity;
import com.ims.repository.WorkDailyRepository;
import com.ims.service.WorkDailyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WorkDailyServiceImpl implements WorkDailyService {
    @Autowired
    private WorkDailyRepository repository;
    @Override
    public void addDaily(WorkDailyEntity daily) {
        repository.addDaily(daily);
    }

    @Override
    public PagingResponse<WorkDailyEntity> getListByUserId(int pageIndex, int pageSize, Integer userId) {
        return repository.getListByUserId(pageIndex,pageSize,userId);
    }
}
